package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.domain.Category;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CategoryAddRequest {
    private String name;

    public Category as(){
        return new Category(this.name);
    }
}
